package com.mbf.crm.model.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.mbf.crm.model.domain.Role;

import java.lang.Long;

@Repository
public interface RoleDao extends PagingAndSortingRepository<Role, Long> {

	List<Role> findByStatus(boolean b);
	
	@Query("select r from Role r where r.id = ?1")
	Role findOne(Long id);
	
}
